package net.sk.china.city.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单项对象 ar_order_item
 * 
 * @author gxf
 * @date 2024-06-05
 */
@Data
public class ArOrderItem
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId
    private Long pkId;

    /** 所属订单id */
    private Long orderId;

    /** 商品名称 */
    private String productName;

    /** 数量 */
    private Integer amount;

    /** 单价（单位分） */
    private Integer unitPrice;

    /** 规格 */
    private String specifications;

    /** 商品图片 */
    private String proImg;

    /** 商品表id */
    private Long productId;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pkId", getPkId())
            .append("orderId", getOrderId())
            .append("productName", getProductName())
            .append("amount", getAmount())
            .append("unitPrice", getUnitPrice())
            .append("specifications", getSpecifications())
            .append("proImg", getProImg())
            .append("productId", getProductId())
            .toString();
    }
}
